package com.bytezreo.interfacetest;

/**
 * 
 * @Description   接口：比较对象的大小
 * @author Bytezero·zhenglei!        Email:420498246@qq.com
 * @version
 * @date 下午9:07:52
 * @
 *
 */

public class ComparableCircleTest {

	public static void main(String[] args) {
		
		ComparableCircle c1 = new ComparableCircle(3.4);
		ComparableCircle c2 = new ComparableCircle(3.6);
		
		int compareValue = c1.compareTo(c2);
		if(compareValue > 0) {
			System.out.println("c1对象大");
		}else if(compareValue < 0) {
			System.out.println("c2对象大");
		}else {
			 System.out.println("c1与c2一样大");
		}
		
		
		
		
	}
}
